package cop;

import engine.Actor;

public class Bullet extends Actor {

	private static Class<? extends Bullet>[] bulletTypes = new Class[]
	{ Plate.class };

	// CONSTRUCTOR
	
	public Bullet() {
		setYAcc(0.5f);
		setSpr("bullet0");
	}

	public static Bullet getInstance() {
		try {
			return bulletTypes[(int) (Math.random() * bulletTypes.length)].newInstance();
		} catch (InstantiationException e) {} catch (IllegalAccessException e) {}
		return null;
	}

}
